import { notification, message } from 'ant-design-vue'

const duration = 1.5

function notice() {
    notification.config({
        top: 40,
        duration: duration,
    })
    return notification
}

const Notification = notice()

function msg() {
    message.config({
        duration: duration,
    })
    return message
}

const Message = msg()



export {
    Notification,
    Message
}